package com.nana.petadventure.controller
{
	import com.nana.framework.ui.manager.UIManager;
	import com.nana.petadventure.app.AppView;
	import com.nana.petadventure.ui.map.MapView;

	public class MapController
	{
		private var _mapView:MapView;
		
		public function MapController()
		{
		}
		
		public function showMapView():void {
			if(_mapView==null) {
				_mapView = new MapView();
			}
			AppView.getInstance().sceneLayer.addChild(_mapView);
		}
		
		public function dismissMapView():void {
			if(_mapView != null) {
				AppView.getInstance().sceneLayer.removeChild(_mapView);
			}
		}
	}
}